from django.contrib.auth.models import AbstractUser
from django.db import models


# Create your models here.

# 扩展AbstractUser，此时需要在settings.py中进行该模型的注册
class MyUser(AbstractUser):
    qq = models.CharField(max_length=16, verbose_name='QQ号')
    weChat = models.CharField(max_length=160, verbose_name='微信账号')
    mobile = models.CharField(max_length=11, verbose_name='电话号码')

    def __str__(self):
        return self.username
